package cn.edu.scau.cmi.guihao.client;
	
import java.net.URL;

import cn.edu.scau.cmi.guihao.controller.AbstractFactoryController;
import cn.edu.scau.cmi.guihao.controller.SafetyComponentController;
import cn.edu.scau.cmi.guihao.pane.SafetyComponentPane;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.fxml.JavaFXBuilderFactory;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;


public class SafetyComponentClient extends Application {
	@Override
	public void start(Stage primaryStage) {
		try {
			Scene scene = new Scene(new SafetyComponentPane(),600,400);
			primaryStage.setScene(scene);
			primaryStage.show();
			primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>() {
			      @Override
			      public void handle(WindowEvent event) {
			    	  System.exit(0);
			      }
			});
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		launch(args);
	}
}
